<template>
	<view class="content">
		<view class="title">
			<text class="f">输入需要添加成员的手机号</text>
		</view>
		<view class="lable">
			<input type="text" @input="sd" value="" placeholder="请输入正确的手机号" placeholder-class="s" />
		</view>
		<view class="button" :class="[on?'on':'']">搜索</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				on:false
			}
		},
		onLoad() {

		},
		methods: {
			sd(e){
				console.log(e)
				if(e.detail.value.length != 0){
					this.on = true
				}else{
					this.on = false
				}
			}
		}
	}
</script>

<style lang="scss">
	view,
	text,
	input,
	textarea {
		box-sizing: border-box;
	}
	page{
		background: #fff;
	}
	
	.button{
		width: 300rpx;
		height: 64rpx;
		border-radius: 8rpx;
		margin: 0 auto;
		font-size: 30rpx;
		margin-top: 140rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #E5E5E5;
		color: #aDADAD;
		&.on{
			background: #153B33;
			color: #fff;
		}
	}
	.content{
		overflow: hidden;
		width: 100%;
		position: relative;
		.title{
			overflow: hidden;
			margin-top: 200rpx;
			.f{
				display: block;
				font-weight: bold;
				text-align: center;
				font-size: 38rpx;
				color: #2D2D2D;
			}
		}
		.lable{
			overflow: hidden;
			width: 580rpx;
			margin: 0 auto;
			height: 120rpx;
			border-top: 1px solid #eeeeee;
			border-bottom: 1px solid #eeeeee;
			display: flex;
			align-items: center;
			margin-top: 90rpx;
			view{
				width: 80rpx;
				height: 80rpx;
				border-radius: 50%;
				background: #d8d8d8;
				image{
					display: block;
					width: 100%;
					height: 100%;
				}
			}
			input{
				width: 100%;
				height: 100%;
				border: none;
				text-align: center;
				outline: none;
				font-size: 30rpx;
				color: #2D2D2D;
			}
			.s{
				font-size: 30rpx;
				color: #C4C4C4;
			}
		}
	}
</style>
